DrawRoundRect(RectangleF,Single,Color,Single,Single[]) Method
In This Topic
Draws a rounded rectangle using a specified line color, width and dash pattern.
If the dashPattern array contains two or more items, the rounded rectangle is drawn with a Pen having Pen.LineCap set to PenLineCap.Square instead of PenLineCap.Flat.
Syntax
'Declaration
Public Overloads Sub DrawRoundRect( _
ByVal As System.Drawing.RectangleF, _
ByVal As System.Single, _
ByVal As System.Drawing.Color, _
ByVal As System.Single, _
ByVal () As System.Single _
)
public void DrawRoundRect(
System.Drawing.RectangleF ,
System.float ,
System.Drawing.Color ,
System.float ,
System.float[]
)
Parameters
- bounds
- A System.Drawing.RectangleF structure that represents the rectangle to draw.
- radius
- The radius for the quarter ellipse that is drawn to replace every corner of the rectangle.
- lineColor
- The color of lines used to draw the rounded rectangle.
- lineWidth
- The width of lines used to draw the rounded rectangle.
- dashPattern
- The dash pattern lines used to draw the rounded rectangle.
See Also